package com.battle.project.user.service.impl;

import com.battle.project.order.rpc.OrderFeignService;
import com.battle.project.user.rpc.UserFeignService;
import com.battle.project.user.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserInfoServiceImpl implements UserInfoService, UserFeignService {

    @Autowired
    private OrderFeignService orderFeignService;

    @Override
    public String findUserInfoById(Integer id) {

        return "123";
    }

    @Override
    public Object findOrderInfoByOrderId(Integer id) {
        return orderFeignService.findOrderInfo();
    }


}
